<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title></title>
<import type="js" file="js.jquery" />
<import type="js" file="js.common" />
<import type="css" file="css.global" />
</head>
<body>
<div class="list">
<table class="stripe" cellspacing="0">
    <thead>
        <tr>
            <th width="60%">工作月度目标标题</th>
            <th width="10%">创建时间</th>
            <th width="10%">提交时间</th>
            <th width="10%">操作</th>
        </tr>
    </thead>
 
    <tbody>
      <volist name="data" id="vo" empty="$empty">
        <tr>
            <td>{$vo.name|default='---'}</td>
            <td>{$vo.create_date|default='---'}</td>
            <td><if condition="$vo['log_stime'] eq '0000-00-00 00:00:00'">----<else />{$vo.log_stime}</if></td>
            <td>
            <a href="javascript:void(0);" onclick="del({$vo.log_id});" title="删除" >删除</a>&nbsp;
			<if condition="$vo['status'] neq 1">
			<a href="javascript:void(0);" onclick="filing();" title="提交" >提交</a></if>
            </td>
        </tr>
      </volist>
    </tbody>
    <thead>
        <tr>
            <th colspan="4">{$page}</th>
        </tr>
    </thead>
</table>
</div>
</body>
</html>
<script language="javascript">
$(document).ready(function(){  
	$(".stripe tr").mouseover(function(){    
	  $(this).addClass("over");}).mouseout(function(){   
			$(this).removeClass("over");}) 
  	$(".stripe tr:even").addClass("alt");
});   
function del(id){
	if (confirm("真的要删除吗？")){
		window.location.href="__APP__/WorkLog/debriefings_del?id="+id;
		return true;
	}else{
		return false;
	}
}
function filing(){
	var url = "__APP__/WorkLog/debriefings_filing?id="+id;
	$.get(url,function(result){
		location.reload();
	});
	return false;
}
</script>  